package the.broccoli.uc.service;

import the.broccoli.uc.controller.req.UpdateAppReq;
import the.broccoli.uc.dto.BuyAppDTO;
import the.broccoli.uc.dto.TenantAddDTO;
import the.broccoli.uc.entity.Tenant;
import org.wisteria.framework.web.mvc.service.ISuperService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lei.liu
 * @since 2020-04-11
 */
public interface ITenantService extends ISuperService<Tenant> {

    String getTenantNameById(Integer tenantId);

    boolean add(TenantAddDTO dto);

    boolean buyApp(BuyAppDTO dto);

    /**
     * 更新应用资源信息
     */
    boolean updateApp(UpdateAppReq req);
}
